package com.shan.design.combination.safe;

/**
 * <br/>
 * 文件安全组合类
 * @author shanzheng
 * @date 2018-12-02 17:43
 **/
public class TextFileSafe extends AbstractFileSafe{
    private String name;

    public TextFileSafe(String name) {
        this.name = name;
    }
    @Override
    void killVirus() {
        //模拟杀毒
        System.out.println("----对文本文件'" + name + "'进行杀毒");
    }
}
